<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      section {
        height: 600px;
        background: #000;
      }
      h2 {
        text-align: center;
        font-size: 60px;
        color: #fff;
      }
      .sticky {
        text-align: center;
        position: fixed;
        left: 0;
        top: 10px;
        width: 100%;
        height: 50px;
        /* border: 1px solid red; */
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(2px);
      }
      .section2 {
        background: #ff0;
      }
    </style>
  </head>
  <body>
    <div class="sticky">
      <p>kdjklfjkdljfkljskfjkldsjf</p>
    </div>
    <section>
      <h2>title1</h2>
    </section>
    <section class="section2">
      <h2>title2</h2>
    </section>
    <section>
      <h2>title1</h2>
    </section>
    <section>
      <h2>title1</h2>
    </section>
  </body>
</html>
